package com.demo.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.demo.model.OpeningReport;
@Transactional(propagation=Propagation.REQUIRES_NEW,readOnly=false,isolation=Isolation.DEFAULT)
public interface OpeningReportDAO {
    int deleteByPrimaryKey(Integer id);
    
    void deleteBatch(Map<String,Object> map);

    int insert(OpeningReport record);

    int insertSelective(OpeningReport record);

    OpeningReport selectByPrimaryKey(Integer id);

    List<OpeningReport> selectAll();
    
    List<OpeningReport> selectLike(@Param("title") String title,@Param("state") String state);
    
    int updateByPrimaryKeySelective(OpeningReport record);

    int updateByPrimaryKeyWithBLOBs(OpeningReport record);

    int updateByPrimaryKey(OpeningReport record);

}
